﻿<Page
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:AMMVVM.W8"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:ViewModels="using:ViewModels"
    x:Class="AMMVVM.W8.ItemPage"
    mc:Ignorable="d">

    <Page.DataContext>
        <ViewModels:ItemPageViewModel/>
    </Page.DataContext>

    <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
        <Grid.RowDefinitions>
            <RowDefinition Height="140"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <Button x:Name="backButton" Margin="39,59,39,0" Style="{StaticResource NavigationBackButtonNormalStyle}" Command="{Binding GoBackCommand}"/>
        <TextBlock Style="{StaticResource HeaderTextBlockStyle}" Text="{Binding PageName}"  Margin="120,0,30,40" VerticalAlignment="Bottom" />
        <ContentControl VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Row="1" Content="{Binding SelectedItem}" ContentTemplate="{StaticResource ColoredSquareTemplate}"/>
    </Grid>
</Page>
